package com.qfmy.model.vo.listenBook;

import com.qfmy.model.entity.listenBook.AudioResource;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.vo.listenBook
 * @date 2025/11/01
 * @description 播放历史
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PlayRecordVo {
    @Schema(description = "记录ID（主键）")
    private Long recordId;

    @Schema(description = "当前播放进度（单位：秒，默认0）")
    private Integer progress;

    @Schema(description = "该用户对该音频的播放次数（默认1）")
    private Integer playCount;

    @Schema(description = "最后播放时间（默认当前时间）")
    private Date lastPlayTime;

    @Schema(description = "播放的章节")
    private Integer chapterNum;

    @Schema(description = "播放的音频")
    private AudioResource audioResource;

}
